import {
	EMPIRE_SEARCH_KEYWORDS
} from './const.js'

/**
 * @param {Object} fn -> success
 */
export function getSearchKeywords(fn) {
	return uni.getStorage({
		key: EMPIRE_SEARCH_KEYWORDS,
		success: fn
	})
}

export function setSearchKeywords(data) {
	uni.setStorage({
		key: EMPIRE_SEARCH_KEYWORDS,
		data: data,
		success() {
			//
		}
	})
}